<%--
  Created by IntelliJ IDEA.
  User: anthe
  Date: 2020/8/29
  Time: 16:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page isELIgnored="false"%>
<html>
<head>
    <meta charset="utf-8">
    <title>
        书籍列表
    </title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="../css/x-admin.css" media="all">
</head>
<body>
<div class="x-nav">
            <span class="layui-breadcrumb">
              <a><cite>首页</cite></a>
              <a><cite>订单管理</cite></a>
              <a><cite>订单列表</cite></a>
            </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right"  href="javascript:location.replace(location.href);" title="刷新"><i class="layui-icon" style="line-height:30px">ဂ</i></a>
</div>
<div class="x-body">
    <form class="layui-form x-center" action="../book/searchBook" method="post" style="width:800px">
        <%--搜索条件--%>
        <div class="layui-form-pane" style="margin-top: 15px;">
            <div class="layui-form-item">
                <label class="layui-form-label">订单ID</label>
                <div class="layui-input-inline">
                    <input class="layui-input" placeholder="bookId" id="bookId" name="bookId">
                </div>
                <label class="layui-form-label">用户ID</label>
                <div class="layui-input-inline">
                    <input class="layui-input" placeholder="bookName" id="bookName" name="bookName">
                </div>
                <div class="layui-input-inline" style="width:80px">
                    <button class="layui-btn"  type="submit" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
                </div>
            </div>
        </div>
    </form>
    <xblock>
        <button class="layui-btn" onclick="location.href=''"><i class="layui-icon">
            &#xe608;</i>添加</button>
    </xblock>
    <table class="layui-table">
        <thead>
        <tr>
            <th>
                订单ID
            </th>
            <th>
                用户id
            </th>
            <th>
                日期
            </th>
            <th>
                地址
            </th>
            <th>
                电话
            </th>
            <th>
                合计
            </th>
            <th>
                状态
            </th>
        </tr>
        </thead>
        <tbody>
        <%--输出列表--%>
        <c:forEach var="order" items="${orderList}">
            <tr>
                <td>${order.orderId}</td>
                <td>${order.userId}</td>
               <%-- <td>${order.createTime}</td>--%>
                <td>${order.formatTime}</td>
                <td>${order.address}</td>
                <td>${order.phone}</td>
                <%--<td>${order.orderStatus}</td>--%>
                <td>${order.total}</td>
                <td>${order.status.status}</td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
    <!-- 分页栏 -->
 <%--   <div align="center">
        <font size="2">第 ${page.pageNum} 页，共${page.pages}页，${page.total} 条记录</font> <a href="../book/list.do?page=1">首页</a>
        <c:choose>
            <c:when test="${page.pageNum - 1 > 0}">
                <a href="../book/list.do?page=${page.pageNum - 1}">上一页</a>
            </c:when>
            <c:when test="${page.pageNum - 1 <= 0}">
                <a href="../book/list.do?page=1">上一页</a>
            </c:when>
        </c:choose>
        <c:choose>
            <c:when test="${page.pages==0}">
                <a href="../book/list.do?page=${page.pageNum}">下一页</a>
            </c:when>
            <c:when test="${page.pageNum + 1 < page.pages}">
                <a href="../book/list.do?page=${page.pageNum + 1}">下一页</a>
            </c:when>
            <c:when test="${page.pageNum + 1 >= page.pages}">
                <a href="../book/list.do?page=${page.pages}">下一页</a>
            </c:when>
        </c:choose>
        <c:choose>
            <c:when test="${page.pages==0}">
                <a href="../book/list.do?page=${page.pageNum}">尾页</a>
            </c:when>
            <c:otherwise>
                <a href="../book/list.do?page=${page.pages}">尾页</a>
            </c:otherwise>
        </c:choose>
    </div>--%>
</div>
<script src="../lib/layui/layui.js" charset="utf-8"></script>
<script src="../js/x-layui.js" charset="utf-8"></script>
<script>
</script>

</body>
</html>